<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>有医说疑</title>
    <div th:replace="commonPage::comLink"></div>
</head>
<body>
<div th:replace="commonPage::#loader"></div>

<div th:include="commonPage::comIndexHeaderMune"></div>

<!-- ================================
    START BREADCRUMB AREA
================================= -->

<!--<section class="breadcrumb-area">-->
<!--    <div class="container">-->
<!--        <div class="row">-->
<!--            <div class="col-lg-12">-->
<!--                <div class="breadcrumb-content text-center">-->
<!--                    <div class="section-heading">-->
<!--                        <h2 class="section__title">有医说疑</h2>-->
<!--                    </div>-->
<!--                </div>&lt;!&ndash; end breadcrumb-content &ndash;&gt;-->
<!--            </div>&lt;!&ndash; end col-lg-12 &ndash;&gt;-->
<!--        </div>&lt;!&ndash; end row &ndash;&gt;-->
<!--    </div>&lt;!&ndash; end container &ndash;&gt;-->
<!--</section>&lt;!&ndash; end breadcrumb-area &ndash;&gt;-->


<!-- ================================
    END BREADCRUMB AREA
================================= -->

<!--      论坛布局       -->
<div class="container-fluid  padding-bottom-120px padding-top-140px">
    <div class="row">
        <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 mx-auto">
            <h2><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> 发现</h2>
            <hr>
            <div class="media" th:each="question : ${pageInitDTO.questions}">
                <div class="media-left media-margin">
                    <a href="#">
                        <img class="media-object " th:src="${question.user.imgUrl}">
                    </a>
                </div>
                <div class="media-body media-margin">
                    <a th:href="@{'/question/'+${question.id}}">
                        <h4 class="media-heading" th:text="${question.title}"></h4>
                    </a>
                    <span class="text-about">
                        <i class="fa fa-eye"><span th:text="${question.viewCount}"></span> </i>
                        &emsp;
                        <i class="glyphicon glyphicon-comment"></i>
                        <span th:text="${question.commentCount}" ></span>
                        &emsp;
                        <span th:text="${question.likeCount}" class="fa fa-thumbs-o-up"></span>
                        &emsp;
                        <span class="btn-right" th:text="${#dates.format(question.gmtCreate,'yyyy-MM-dd HH:mm')}"></span>
                    </span>
                </div>
            </div>
            <nav aria-label="Page navigation" class="btn-right">
                <ul class="pagination">
                    <li>
                        <a th:href="@{/communityCenter(page=1)}" aria-label="First"
                           th:if="${pageInitDTO.showFirstPage}">
                            <span aria-hidden="true">首页</span>
                        </a>
                        <span aria-hidden="true" th:if="${pageInitDTO.showFirstPage == false}" class="btn-disabled">
                            首页
                        </span>
                    </li>
                    <li>
                        <a th:if="${pageInitDTO.showPrevious}" th:href="@{/communityCenter(page=${pageInitDTO.page}-1)}"
                           aria-label="Previous">
                            <span aria-hidden="true">上一页</span>
                        </a>
                        <span th:if="${pageInitDTO.showPrevious == false}" aria-hidden="true"
                              class="btn-disabled">上一页</span>
                    </li>

                    <li th:each="page : ${pageInitDTO.pages}" th:class="${pageInitDTO.page == page}? 'active':''">
                        <a th:href="@{/communityCenter(page=${page})}" th:text="${page}">

                        </a>
                    </li>

                    <li>
                        <a th:href="@{/communityCenter(page=${pageInitDTO.page}+1)}" aria-label="Next"
                           th:if="${pageInitDTO.showNext}">
                            <span aria-hidden="true">
                                下一页
                            </span>
                        </a>
                        <span th:if="${pageInitDTO.showNext == false}" class="btn-disabled">
                                下一页
                        </span>
                    </li>
                    <li>
                        <a th:href="@{/communityCenter(page=${pageInitDTO.totalPage})}" aria-label="End"
                           th:if="${pageInitDTO.showEndPage}">
                            <span aria-hidden="true">
                                尾页
                            </span>
                        </a>
                        <span aria-hidden="true" class="btn-disabled" th:if="${pageInitDTO.showEndPage==false}">
                            尾页
                        </span>
                    </li>
                </ul>
            </nav>

        </div>
        <div class="col-lg-4 col-md-12 col-sm-12 col-xs-12 ">
            <h3>友情链接</h3>
            <hr>
            <a href="https://blog.csdn.net/Aatroy"> 作者的CSDN </a>
            <br>
            <a href="https://gitee.com/aatroy"> 作者的 Gitee</a>
            <br>
            <a href="https://qm.qq.com/cgi-bin/qm/qr?k=TGPZgRZezRYSiVot6p_ouNA3LG6PVvGR&noverify=0">点击 联系作者 </a>
            <br>
            <img th:src="@{/images/contactMe.jpg}" class="contact-me">

        </div>
    </div>
</div>


<div th:replace="commonPage::comFooter">
</div>
<div th:replace="commonPage::comScript">
</div>
</body>
</html>